<?php
require'dbcon.php';
$id=(isset($_GET['id']))?$_GET['id']:0;
$sql="delete from tb_emp where e_id='$id'";
$rs=$db->query($sql);
if($rs==true){
      echo "<script language='javascript' type='text/javascript'>";
       echo "alert('删除成功！');";
        echo "window.location.href='index.php'";
        echo "</script>";
}else{
    echo "<script language='javascript'>";
    echo "alert('留言删除失败！');";
    echo "window.location.href='index.php'";
    echo "</script>";
}
$db->close();

